package com.job.springsea.work0709;

/**
 * @author 于春海
 * @version 1.0
 * @since 2022-07-09 20:02:17
 */
public class Teacher extends Person{
    protected String title;
    protected void lecture(){
        System.out.println("讲课");
    }

    public Teacher(String name, int age, String title) {
        super(name, age);
        this.title = title;
    }

    public Teacher() {
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }
}